package prototype;

import java.text.MessageFormat;

/**
 * @Author: 蔡翔
 * @Date: 2019/12/6 16:20
 * @Version 1.0
 */
public class MailUtil {
    public static void sendMail(Mail mail){
        String outputContent = "向{0}同学，邮件地址：{1}，内容：{2}";
        System.out.println(MessageFormat.format(outputContent,mail.getName(),mail.getEmailAddress(),mail.getContent()));
    }
    public static void saveOriginMailRecord(Mail mail){
        System.out.println("存储originmail模板 "+mail.toString());
    }
}
